package controllers

import "github.com/astaxie/beego"

type PublicController struct {
	beego.Controller
}
//type BandResponse struct {
//	Status string `json:"status"`
//	Errmsg string `json:"errmsg"`
//}

func (pc *PublicController) response(status string, errmsg string) {
	response := Response{}
	response.Status = status
	response.Errmsg = errmsg
	pc.Data["json"] = &response
	pc.ServeJSON()
}